import {ref} from 'vue'
import PageContent from '@/components/page-content/PageContent.vue'
export default function useSearch() {
  const pageContentRef = ref<InstanceType<typeof PageContent>>()
  
  const handleSelectClick:any = (formData:any) => {  
    pageContentRef.value?.getTableData(formData)
  }
  const handleResetClick:any = ():any => {
    pageContentRef.value?.getTableData()
  }
  return [handleSelectClick,handleResetClick,pageContentRef]
}